package com.nimitz.system.service.impl;

import com.nimitz.system.domain.SysDirtyWater;
import com.nimitz.system.mapper.SysDirtyWaterMapper;
import com.nimitz.system.service.SysDirtyWaterService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SysDirtyWaterServiceImpl implements SysDirtyWaterService{
    @Autowired
    private SysDirtyWaterMapper sysDirtyWaterMapper;

    @Override
    public List<SysDirtyWater> findById() {
            return sysDirtyWaterMapper.findById();
    }

    @Override
    public Object add(SysDirtyWater sysDirtyWater) {
       sysDirtyWaterMapper.add(sysDirtyWater);
        return null;
    }

    @Override
    public void update(SysDirtyWater sysDirtyWater) {
       sysDirtyWaterMapper.update(sysDirtyWater);
    }
}
